home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d26 / qmtek601.arc / DBASE.TEC < prev    next >
Text File  |  1991-05-23  |  3KB  |  68 lines

  1. ID:DB dBase III Plus and IV Colors
  2. DESQview Technical Note:
  3. by Stan Young
  4.  
  5. dBASE III Plus and dBASE IV use the TopView/DESQview call to write 
  6. to DESQview's screen buffer and therefore can be run in a small 
  7. window and in the background.
  8.  
  9. Unfortunately, when the dBASE developers implemented the call, they
  10.  
  11. used a TopView function called "Logical Colors" incorrectly.  As a 
  12. result, when you run dBASE with the "Writes Directly to Screen" 
  13. option turned off, dBASE will not display the colors that you 
  14. select with the "SET COLOR TO" option.  When dBASE is run with the 
  15. default color scheme and is running in the ASSIST mode, the menu 
  16. bars do not display highlighting properly.
  17.  
  18. The most drastic way to cause dBASE to display the screen correctly
  19. is 
  20. to run DESQview's "Change a Program" and turn on the options
  21. "Writes
  22. Directly to Screen" and "Runs Only in Foreground." Using this 
  23. configuration, colors in dBASE will appear exactly as they do in
  24. DOS.  
  25. Unfortunately, this prevents the program from processing in a small
  26.  
  27. window and running properly in the background unless you are
  28. running 
  29. on a 386 machine, in which case DESQview can virtualize the screen.
  30.  
  31. If you don't have to set specific colors, however, there is another
  32.  
  33. solution that will result in a pleasant, readable set of colors
  34. that 
  35. will run properly in a window and background:
  36.  
  37. FIRST -  Edit the CONFIG.DB file (in your dBASE directory) and
  38. change 
  39. the line that says "COMMAND = ASSIST" to:
  40.  
  41.      COMMAND = DO DESQVIEW
  42.  
  43. NEXT  -  Using a word processor capable of producing ASCII files
  44. (such 
  45. as you would use to write batch files), make a file called 
  46. DESQVIEW.PRG and place it in the dBASE directory.  The file should 
  47. contain the following two lines followed by a blank line:
  48.  
  49.      SET COLOR TO
  50.      ASSIST
  51.  
  52. When you run dBASE, dBASE will now automatically run the
  53. DESQVIEW.PRG 
  54. file.  This provides a pleasant set of colors, although not exactly
  55.  
  56. the default colors that it should provide.  You may then use the 
  57. DESQview option to change the colors further, if you like, by 
  58. selecting "Rearrange" and "Colors" from the DESQview main menu. 
  59.  
  60. Let me restate that this problem occurs because of what amounts to
  61. dBASE III Plus and dBASE IV "bug" in their TopView/DESQview 
  62. routines.  Since we support these routines, the problem only shows 
  63. up when you are running in DESQview or TopView. 
  64.  
  65.         Copyright (C) 1990 by Quarterdeck Office Systems
  66.              * * *   E N D   O F   F I L E    * * * 
  67.